home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4451 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.8 KB

  1. Path: ar.ar.com.au!not-for-mail
  2. From: storm@ar.ar.com.au (Storm)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: One hardware-basher's manifesto
  5. Date: 29 Feb 1996 09:48:29 +1100
  6. Organization: I need to put my ORGANIZATION here.
  7. Message-ID: <4h2m3t$sd4@ar.ar.com.au>
  8. References: <4ge8na$vhe@ar.ar.com.au> <08000305729070351637@BIRDLAND> <4guenp$1a1@vixen.cso.uiuc.edu>
  9. NNTP-Posting-Host: ar.ar.com.au
  10. X-Newsreader: TIN [UNIX 1.3 941216BETA PL0]
  11.  
  12. Saladino Michael D (msaladin@students.uiuc.edu) wrote:
  13. : >> : > Please use OwnBlitter/DisOwn... and use CacheControl to turn on only the caches
  14. : >> : > you need (If data burst (030/040/060) modes is on the CPU will take 4x as much
  15. : >> : > time when accessing fastram randomly.
  16.  
  17. : I don't think I can express in words just how wrong this is, but I'm going to do my
  18. : best.  First of all, even if you were accessing RAM "randomly", you will not suffer
  19. : a 4x speed drop.  Checking a cache (L1 or L2) you only suffer a few clock cycles and
  20. : this is kept to a minimum thanks to pipelining the cache lookup hardware.  However,
  21. : this is a moot point because programs don't access RAM randomly.  The whole point
  22. : of the cache is to take advantage of the temporal and spatial locality that occurs
  23. : in ALL programs.  You would actually have to go WAY out of your way to make a program
  24. : that runs faster with caches turned off and I bet it wouldn't do much.  Are you aware
  25. : that modern day processors (and I'm even including the 680x0 line) get over 90% hit
  26. : rates on their data caches and even higher for the instruction cache.  Turning a
  27. : cache off is like flipping a switch to drop your clock from 50Mhz to 5Mhz.  It's 
  28. : stupid... don't do it!
  29.  
  30. Two points.
  31.  
  32. #1 Format your post to 80 columns.. that was almost unreadable!
  33.  
  34. #2 Nobody suggested killing CACHES.. he was talking about the DATA BURST mode,
  35. which fills the cache 4 (?) longwords at a time rather than 1 on an 030. Now,
  36. of course, killing the cache is a bad idea and it is indeed almost impossible
  37. to make something run slower with the cache on. But with the BURST mode on,
  38. and relatively random memory access (we'll pretend you never made that "programs
  39. don't access RAM randomly" generalisation), you will find yourself wasting time
  40. bursting 4 longwords into the cache instead of 1, when the other 3 will not
  41. be used (or probably not be used).
  42.  
  43. Your reply is appreciated, but why do I get the impression that you just saw
  44. the words "cache" and "off" in the same sentence and unleashed a paragraph
  45. from a comp sci textbook, without actually checking what was being discussed?
  46.  
  47. --                  ______________________________
  48.                     \_/ "\/\/\__"\/ "\/ "\/\__"\_/ 
  49. Storm / Cydonia      / / / / / / / / / / / / ' /       Packing class
  50.                     / /\/>  / / / / / / / / / /__     & kicking arse!
  51.     (coder)         \__/ \_/\__/\__/\/\/\/\/\/ \/
  52.  
  53.